<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加商品</title>
    <link rel="stylesheet" href="../src/css/bootstrap.min.css">
    <link rel="stylesheet" href="../src/css/font-awesome.min.css">
    <link rel="stylesheet" href="../src/css/style.min.css">
    <script src="../src/js/jquery-3.3.1.min.js"></script>
    <script src="../src/js/bootstrap.min.js"></script>

    <script type="text/javascript" charset="utf-8" src="http://ueditor.baidu.com/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="http://ueditor.baidu.com/ueditor/ueditor.all.js"></script>

</head>
<body>
            <section class="content-container">

                <div class="content-wrapper">
                    <div class="bread-crumb">
                        <h5 class="b-inner clearfix">
                            <b class="tit">添加商品</b>
                            <span class="float-right">
                                <a href="" class="btn btn-primary">保存</a>
                                <a href="" class="btn btn-secondary">取消</a>
                            </span>
                        </h5>

                    </div>
                    <div class="common-order-title"><b class="o-tit">商品主图</b></div>
                    <div class="row">
                        <div class="col-12">
                            <div class="form-group col-9">
                                <label>主图（最多可以上传5张）</label>
                                <ul class="list-unstyled">
                                    <li class="list-inline-item position-relative">
                                        <img src="../src/img/avatar.jpg" class="common-avatar">
                                        <span class="common-close"><i class="fa fa-minus-circle"></i></span>
                                    </li>
                                    <li class="list-inline-item">
                                        <div class="common-upload-file">
                                            <i class="add"></i>
                                            <input type="file" class="file">
                                        </div>

                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <br />
                    <div class="common-order-title"><b class="o-tit">基本信息</b></div>
                    <div class="row">
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>品牌：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>类别：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>属性：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>商品编号：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>品名：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>商城展示名：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>


                    </div>
                    <br>
                    <div class="common-order-title"><b class="o-tit">商品规格</b></div>
                    <div class="row">
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>毛头颜色：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>毛头材质：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>手柄颜色：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>手柄材质：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>口管颜色：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>口管材质：</label>
                                <select class="form-control mr-1">
                                    <option>-请选择-</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>配置：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>成本价：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>内部价：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>营销价：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>

                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>初始库存：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>初始销量：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                        <div class="col-6">
                            <div class="form-group col-9">
                                <label>容许售卖：</label>
                                <input type="text" class="form-control">
                            </div>
                        </div>
                    </div>
                    <br>
                    <div class="common-order-title"><b class="o-tit">商品详情</b></div>
                    <div class="row">
                        <div class="col-6">
                            <div class="form-group">
                                    <script type="text/plain" id="myEditor" name="myEditor">
                                        <p>欢迎使用UEditor！</p>
                                    </script>
                            
                            </div>
                        </div>
                    </div>

                </div>

            </section>

    <script type="text/javascript">
        var editor_a = UE.getEditor('myEditor',{initialFrameHeight:500, serverUrl: '/server/ueditor/controller.php'});

        //--自动切换提交地址----
        var doc=document,
                version = editor_a.options.serverUrl || editor_a.options.imageUrl || "php",
                form=doc.getElementById("form");

            form.action="./server/getContent.php";
        //-----


    </script>


</body>

</html>